﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace LS.Api.Models
{
    /// <summary>
    /// 身份验证信息
    /// </summary>
    public class AuthInfo
    {
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
        public long UserId { get; set; }
        /// <summary>
        /// 过期时间
        /// </summary>
        public DateTime? ExpiryDateTime { get; set; }

        /// <summary>
        /// 登录类型 1=获取token  2=用户登录
        /// </summary>
        public int LoginType { get; set; }
    }
    /// <summary>
    /// 登录输入
    /// </summary>
    public class LoginInput
    {
        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 用户密码
        /// </summary>
        public string Password { get; set; }
        ///// <summary>
        ///// 验证码
        ///// </summary>
        //public string VerCode { get; set; }
    }

    /// <summary>
    /// 授权输入
    /// </summary>
    public class AuthInput
    {
        /// <summary>
        /// 授权名称
        /// </summary>
        public string AuthName { get; set; }

        /// <summary>
        /// 授权key
        /// </summary>
        public string AuthKey { get; set; }
    }
    /// <summary>
    /// 注册实体
    /// </summary>
    public class RegisterInput
    {
        /// <summary>
        /// 企业名称
        /// </summary>
        public string CompanyName { get; set; }
        /// <summary>
        /// 联系人姓名
        /// </summary>
        public string Contacts { get; set; }
        /// <summary>
        /// 联系人电话
        /// </summary>
        public string ContactTel { get; set; }

        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 用户密码
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// 用户密码
        /// </summary>
        public string ConfirmPassword { get; set; }
        /// <summary>
        /// 验证码
        /// </summary>
        public string VerCode { get; set; }
    }
    /// <summary>
    /// 修改密码实体
    /// </summary>
    public class ChangePwdInput
    {
        /// <summary>
        /// 用户旧密码
        /// </summary>
        public string OldPassword { get; set; }
        /// <summary>
        /// 用户新密码
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// 用户密码
        /// </summary>
        public string ConfirmPassword { get; set; }
    }

}